import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app_05/action/states/dark_states.dart';
import 'package:flutter_app_05/utils/MyTheme.dart';
import 'package:flutter_app_05/utils/ScreenAdapter.dart';
import 'package:provider/provider.dart';

class Padecalnine extends StatefulWidget{
  @override
  _PadecalnineInState createState() => _PadecalnineInState();

}
BuildContext mContext;
class _PadecalnineInState extends State<Padecalnine>{

  @override
  Widget build(BuildContext context) {
    ScreenAdapter.init(context);
    mContext = context;
    return Scaffold(
      appBar: AppBar(
        backgroundColor: MyTheme(context).getColor('app_green'),
        iconTheme: IconThemeData(
          color:Colors.white
        ),
      ),
      body: Container(
        color: MyTheme(context).getColor('bg'),
        child: _buildList(),
      ),
    );
  }

}

Widget _buildList() {
  return Container(
    height: double.infinity,
    child: Column(
    children: [
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_1.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  供热规划",style: TextStyle(fontSize: 12),),
        ],
      ),
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_2.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  锅炉规划",style: TextStyle(fontSize: 12),),
        ],
      ),
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_3.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  热力站规划",style: TextStyle(fontSize: 12),),
        ],
      ),
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_4.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  二网平衡",style: TextStyle(fontSize: 12),),
        ],
      ),
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_5.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  末端水力平衡",style: TextStyle(fontSize: 12),),
        ],
      ),
      Row(
        children: [
          Container(
            padding: EdgeInsets.all(10),
            child: new Image(
              image: new AssetImage("images/a_6.png"),
              width: 30,
              height: 30,
            ),
          ),
          Text("  供热信息化",style: TextStyle(fontSize: 12),),
        ],
      )
    ]),
  );
}